package com.laolu.icon.win32.struct;

import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.util.List;

// 定义 LVITEM 结构体 (JNA 映射)
public class LVITEM extends Structure {
	public static final int LVIF_TEXT = 0x0001;
	public int mask;
	public int iItem;
	public int iSubItem;
	public int state;
	public int stateMask;
	public Pointer pszText;
	public int cchTextMax;
	public int iImage;
	public int lParam;
	public int iIndent;
	public int iGroupId;
	public int cColumns;
	public Pointer puColumns;
	
	@Override
	protected List<String> getFieldOrder() {
		return List.of(
				"mask", "iItem", "iSubItem", "state", "stateMask",
				"pszText", "cchTextMax", "iImage", "lParam", "iIndent",
				"iGroupId", "cColumns", "puColumns"
		);
	}
}
